home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
pctj8410.arc
/
MYPROG.BAS
< prev
next >
Wrap
BASIC Source File
|
1986-09-14
|
640b
|
20 lines
5 REM PROGRAM MYPROG.BAS
10 REM --- BASIC example program for BASLDR ---
15 REM This program may be freely distributed and copied.
20 REM
25 REM This program demonstrates how a user program accesses subroutines
30 REM loaded via the BASLDR program.
35 REM
40 REM Written 4/15/84 by Ron Bauman
50 REM
100 OFFSET%=3
110 SUB1=OFFSET% : OFFSET%=OFFSET%+3
120 SUB2=OFFSET% : OFFSET%=OFFSET%+3
200 DEF SEG=&H0 : REM get the subroutine image segment
210 VLSEG = PEEK ( &H4FE ) + 256*PEEK ( &H4FF )
220 DEF SEG=VLSEG : REM set up subroutine image segment definition
230 CALL SUB1
240 CALL SUB2
250 END